import { webview } from "@/system/index"


export default function webviewHome() {
    // 监听html的prompt('submit', JSON.stringify(param))
    webview.on('toastLog').subscribe(([str, done]) => {
        toastLog(str);
        done();
    });

    webview.on('randomNum').subscribe(([_param, done]) => {
        done(random(1, 100));
    });
}
